<?php
require_once("./DButil.php");

// 查询用户的权限
$loginTeacher = $_SESSION["loginTeacher"];
$roleId = $loginTeacher["roleId"];

$sql = "select p.powerName name,p.powerPath path from t_power p "
." inner join t_role_power rp on rp.powerId = p.powerId "
." where rp.roleId = '{$roleId}'";


$result = [
    "msg" => "查询成功",
    "code" => 200,
    "success" => true,
    "data" => []
];

header("Content-Type:application/json;charset=utf-8");
echo json_encode($result);

?>